var request = require("./com/swancor/module/request");
var cheerio = require("./com/swancor/module/cheerio");

request("http://news.dbanotes.net/", function (error, response, body) {
  if (!error && response.statusCode == 200) {
        var $ = cheerio.load(body);
        $('tr td.title a').each(function () {
        	// console.log($(this).text());
            console.log('%s (%s)', $(this).text(), $(this).attr('href'));
        });
        console.log(error);
  }
});